<template>
  <view class="conten">
    <view class="box">
      <view class="acquired">
        <!-- <view class="aqid_a">
          <view class="currency">当前已得<text>魔幻石</text></view>
          <view class="prop">获得重抽卡0张</view>
        </view>
        <view class="aqid_b">去购物</view> -->
      </view>
      <view class="signinfo">
        <view class="obtain">
          <view class="contotal">已连续签到<text>1</text>天</view>
          <view class="signbox">
            <view class="sign-every sign-active" v-for="(item, index) in skyList" :key="index">
              <image />
              <view>{{ item }}</view>
            </view>
          </view>
          <view class="todayget">
            <view class="triangle" />
            今日可得：
            <image />
            <text>魔幻石 * 1</text>
            <text>重抽卡 * </text>
          </view>
        </view>
        <view class="but col">签到</view>
      </view>
    </view>
    <view class="welfare">
      <view class="wfe_a">签到福利</view>
      <view class="wfe_b" v-for="item in awardList" :key="item.id">
        <view class="continuity">
          <view class="city_a">
            <view class="several">连续签到{{ item.day }}天</view>
            <view class="gro">
              <image src="/src/static/images/small2.png" />
              <text>+{{ item.award }}</text>
            </view>
          </view>
          <view class="city_b">{{ item.detail }}</view>
        </view>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
  import { ref } from 'vue';

  const skyList = ref(['一天', '二天', '三天', '四天', '五天', '六天', '七天']);
  const awardList = ref([
    {
      id: 1,
      day: 3,
      award: 10,
      detail: '连续签到3天额外奖励10个魔石',
    },
    {
      id: 2,
      day: 14,
      award: 200,
      detail: '连续签到14天获取200魔石',
    },
    {
      id: 3,
      day: 31,
      award: 3,
      detail: '连续签到31天获取道具卡3张',
    },
  ]);
</script>
<style lang="scss" scoped>
  .conten {
    position: relative;
    padding: 0 4%;
    .box {
      padding-bottom: 16px;
      .acquired {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 21px 0 18px;
        .aqid_a {
          .currency {
            font-size: 17px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 6px;
            text {
              font-size: 17px;
              font-weight: 600;
              color: #fff;
              margin: 0 5px;
            }
          }
          .prop {
            font-size: 13px;
            color: #fff;
          }
        }
        .aqid_b {
          width: 63px;
          height: 27px;
          text-align: center;
          line-height: 27px;
          font-size: 13px;
          color: #fff;
          border: 1px solid #fff;
          border-radius: 27px;
          background: #f9846e;
        }
      }
      .signinfo {
        padding: 14px 15px 19px;
        background: #fff;
        border-radius: 3px;
        .obtain {
          .contotal {
            font-weight: 800;
            text {
              color: #ff5e30;
              margin: 0 3px;
            }
          }
          .signbox {
            display: flex;
            justify-content: space-between;
            margin-top: 17px;
            .sign-every {
              width: 40px;
              height: 53px;
              background: #f6f6f6;
              border-radius: 3px;
              text-align: center;
              border: 0.5px solid #e7e7e7;
              image {
                width: 20px;
                height: 20px;
                margin: 7px 0 4px;
              }
              view {
                font-size: 12px;
                font-weight: 800;
                text-align: center;
              }
            }
            .sign-active {
              background: #fff3e4;
              border: 0.5px solid #f0e0c5;
            }
          }
          .todayget {
            position: relative;
            background: #fff3e4;
            font-weight: 800;
            font-size: 14px;
            color: #c68a60;
            border-radius: 6px;
            height: 35px;
            line-height: 35px;
            padding: 0 8px;
            margin-top: 13px;
            .triangle {
              position: absolute;
              width: 10px;
              height: 10px;
              background: #fff3e4;
              top: -5px;
              left: 15px;
              -webkit-transform: rotate(45deg);
              transform: rotate(45deg);
              left: 15px;
            }
            image {
              width: 26px;
              height: 27px;
              margin: -8px 5px 0;
            }
            text {
              font-weight: 400;
              color: #c68a60;
              font-size: 14px;
              &:nth-of-type(2) {
                margin-left: 12px;
              }
            }
          }
        }
        .but {
          margin-top: 16px;
          height: 40px;
          background: linear-gradient(270deg, #ff8361, #ff5525);
          border-radius: 20px;
          text-align: center;
          line-height: 40px;
          color: #fff;
          font-size: 15px;
          font-weight: 600;
        }
        .col {
          background-color: #a7a7a7;
        }
      }
    }
    .welfare {
      padding: 0 15px;
      background: #fff;
      border-radius: 3px;
      .wfe_a {
        padding: 17px 0 0;
        font-size: 15px;
        font-weight: 600;
        color: #323232;
      }
      .wfe_b {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        border-bottom: 1px solid #eee;
        .continuity {
          .city_a {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-bottom: 9px;
            .several {
              font-size: 14px;
              color: #323232;
            }
            .gro {
              margin-left: 7px;
              padding: 0 3px;
              height: 20px;
              background: #fff2ee;
              border-radius: 1px;
              display: flex;
              justify-content: space-between;
              align-items: center;
              image {
                width: 9px;
                height: 17px;
                margin-right: 3px;
              }
              text {
                font-size: 11px;
                color: #f34546;
              }
            }
          }
          .city_b {
            font-size: 11px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #9d9d9d;
          }
        }
      }
    }
  }
</style>
